package qc;

import java.util.ArrayList;
import java.util.HashMap;

import javax.swing.JDialog;
import javax.swing.JOptionPane;

import org.quickconnect.ControlObject;

import ui.MainFrame;

public class ServerDialogVCO implements ControlObject{

	@Override
	public Object handleIt(ArrayList<Object> arg0) {
		HashMap params = (HashMap) arg0.get(arg0.size()-1);
		String message = (String) params.get("serverMessage");
		JOptionPane dialog = new JOptionPane();
		dialog.showMessageDialog(MainFrame.mainFrame, message);
		
		return null;
	}

}
